import { TipsKindEnum } from "./enum";

export interface ElementAttrsType {
    [attr: string]: string;
}

/**
 * 给tips组件创建后，附加的方法
 */
export interface TipsType {
    show(kind: TipsKindEnum, content: string | number): void;
    hide(): void;
    isMounted(): boolean;
}

/**
 * 给Keyboard组件创建后，附加的方法
 */
export interface KeyboardType {
    isMounted(): boolean;
}

/**
 * result和formula的组件类型
 */
export interface TextDomType {
    isMounted(): boolean;
    updateText(text: string | number): void;
}

/**
 * 渲染页面时，每个按键对应的信息
 */
export type KeyboardSetType = Record<'basic' | 'quote' | 'keyKind', string>